package wjw.service;

import com.wjw.service.DamageTypeStableService;
import com.wjw.viewmodel.Damage_type_stable_view;
import org.junit.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

import java.util.List;

public class DamageTypeSService {

    private ApplicationContext ioc=new ClassPathXmlApplicationContext("springmvc.xml");

    @Test
    public void test01(){
        DamageTypeStableService bean = ioc.getBean(DamageTypeStableService.class);
        List<Damage_type_stable_view> all = bean.findAll();
        System.out.println(all);
    }
}
